package com.joplus.housekeeper.bean;

import java.util.List;

/**
 * Created by zisheng on 2017/8/16.
 */

public class LotteryBean {

    /**
     * code : 2000
     * data : {"count":1,"lotteryConfig":{"sid":"s1","freeCount":1,"winningRate":10,"Stringegration":3,"rule":"规则","broadcast":"小南鸡中卡卡西一个"},"awardList":[{"sid":"as1","StringegrationProductSid":"s1","awardPictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/2017-07-31/2017073112170700803252.png?1502713370000","name":"小南鸡一只","createdDatetime":1502709768000,"updatedDatetime":1502713370000,"status":true,"awardPicture":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/2017-07-31/2017073112170700803252.png?1502713370000?1502713370000"}]}
     * message : 查询成功
     */

    private String code;
    private DataBean data;
    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public static class DataBean {
        /**
         * count : 1
         * lotteryConfig : {"sid":"s1","freeCount":1,"winningRate":10,"Stringegration":3,"rule":"规则","broadcast":"小南鸡中卡卡西一个"}
         * awardList : [{"sid":"as1","StringegrationProductSid":"s1","awardPictureKey":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/2017-07-31/2017073112170700803252.png?1502713370000","name":"小南鸡一只","createdDatetime":1502709768000,"updatedDatetime":1502713370000,"status":true,"awardPicture":"http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/2017-07-31/2017073112170700803252.png?1502713370000?1502713370000"}]
         */

        private String count;
        private LotteryConfigBean lotteryConfig;
        private List<AwardListBean> awardList;

        public String getCount() {
            return count;
        }

        public void setCount(String count) {
            this.count = count;
        }

        public LotteryConfigBean getLotteryConfig() {
            return lotteryConfig;
        }

        public void setLotteryConfig(LotteryConfigBean lotteryConfig) {
            this.lotteryConfig = lotteryConfig;
        }

        public List<AwardListBean> getAwardList() {
            return awardList;
        }

        public void setAwardList(List<AwardListBean> awardList) {
            this.awardList = awardList;
        }

        public static class LotteryConfigBean {
            /**
             * sid : s1
             * freeCount : 1
             * winningRate : 10
             * Stringegration : 3
             * rule : 规则
             * broadcast : 小南鸡中卡卡西一个
             */

            private String sid;
            private String freeCount;
            private String winningRate;
            private String integration;
            private String rule;
            private String broadcast;

            public String getSid() {
                return sid;
            }

            public void setSid(String sid) {
                this.sid = sid;
            }

            public String getFreeCount() {
                return freeCount;
            }

            public void setFreeCount(String freeCount) {
                this.freeCount = freeCount;
            }

            public String getWinningRate() {
                return winningRate;
            }

            public void setWinningRate(String winningRate) {
                this.winningRate = winningRate;
            }

            public String getIntegration() {
                return integration;
            }

            public void setIntegration(String integration) {
                this.integration = integration;
            }

            public String getRule() {
                return rule;
            }

            public void setRule(String rule) {
                this.rule = rule;
            }

            public String getBroadcast() {
                return broadcast;
            }

            public void setBroadcast(String broadcast) {
                this.broadcast = broadcast;
            }
        }

        public static class AwardListBean {
            @Override
            public String toString() {
                return "AwardListBean{" +
                        "sid='" + sid + '\'' +
                        ", StringegrationProductSid='" + StringegrationProductSid + '\'' +
                        ", awardPictureKey='" + awardPictureKey + '\'' +
                        ", name='" + name + '\'' +
                        ", createdDatetime=" + createdDatetime +
                        ", updatedDatetime=" + updatedDatetime +
                        ", status=" + status +
                        ", awardPicture='" + awardPicture + '\'' +
                        '}';
            }

            /**
             * sid : as1
             * StringegrationProductSid : s1
             * awardPictureKey : http://joplus-images.oss-cn-shanghai.aliyuncs.com/2017-07-31/2017073112170700803252.png?1502713370000
             * name : 小南鸡一只
             * createdDatetime : 1502709768000
             * updatedDatetime : 1502713370000
             * status : true
             * awardPicture : http://joplus-images.oss-cn-shanghai.aliyuncs.com/http://joplus-images.oss-cn-shanghai.aliyuncs.com/2017-07-31/2017073112170700803252.png?1502713370000?1502713370000
             */

            private String sid;
            private String StringegrationProductSid;
            private String awardPictureKey;
            private String name;
            private long createdDatetime;
            private long updatedDatetime;
            private boolean status;
            private String awardPicture;

            public String getSid() {
                return sid;
            }

            public void setSid(String sid) {
                this.sid = sid;
            }

            public String getStringegrationProductSid() {
                return StringegrationProductSid;
            }

            public void setStringegrationProductSid(String StringegrationProductSid) {
                this.StringegrationProductSid = StringegrationProductSid;
            }

            public String getAwardPictureKey() {
                return awardPictureKey;
            }

            public void setAwardPictureKey(String awardPictureKey) {
                this.awardPictureKey = awardPictureKey;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public long getCreatedDatetime() {
                return createdDatetime;
            }

            public void setCreatedDatetime(long createdDatetime) {
                this.createdDatetime = createdDatetime;
            }

            public long getUpdatedDatetime() {
                return updatedDatetime;
            }

            public void setUpdatedDatetime(long updatedDatetime) {
                this.updatedDatetime = updatedDatetime;
            }

            public boolean isStatus() {
                return status;
            }

            public void setStatus(boolean status) {
                this.status = status;
            }

            public String getAwardPicture() {
                return awardPicture;
            }

            public void setAwardPicture(String awardPicture) {
                this.awardPicture = awardPicture;
            }
        }
    }
}
